﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="libruconverter.aspx.cs"
    Inherits="Eugenhome.Atrium.LibRu.Web.libruconverter" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>LibRu-Converter</title>
    <script src="../default.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../style.css">
    <meta name="robots" content="noindex">
    <meta http-equiv="expires" content="0">
    <style type="text/css">
        .style1
        {
            width: 118px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" class="editTable">
        <tr>
            <td colspan="2" class="tdUnderline">
                <div class="title">
                    LibRu-Konverter</div>
                <a href="../default.aspx" target="_top">
                    <img src="../gui/back.png" title="Zurück zur Startseite" /></a>&#160;&#160;::&#160;&#160;
                <a href="libruconverter.aspx" target="_top">Konvertierte anzeigen</a>&#160;&#160;::&#160;&#160;
                <a href="http://lib.ru" target="_blank">Lib.ru</a>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label1" runat="server" Text="Übersichts-Seite oder Direkt-Link"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtUrl" runat="server" Width="400px"></asp:TextBox><br /><small>z.B. http://fan.lib.ru/a/aleks_g oder http://lib.ru/FOUNDATION/found1.txt_Ascii.txt</small>
                        </td>
                        <td>
                            <asp:Button ID="btnLoad" runat="server" Text="Überishct laden" OnClick="btnLoad_Click" Width="200"/><br />
                            <asp:Button ID="btnSaveDirect" runat="server" Text="Direkt-LinkSpeichern" Width="200"
                                onclick="btnSaveDirect_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label2" runat="server" Text="Zieldatei-Name"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtTargetFileName" runat="server" Width="400px">%origfilename%</asp:TextBox><br /><small><asp:Label ID="Label4" runat="server" Text="z.B. rasskas.txt. Wenn leer oder Platzhalter %origfilename% dann Original-Name."></asp:Label></small>
                        </td>
                        <td>
                            <asp:Button ID="btnSave" runat="server" Text="Speichern" Width="200" OnClick="btnSave_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label3" runat="server" Text="Ergebnis"></asp:Label>
                        </td>
                        <td>
                            <asp:HyperLink ID="btnResultDownload" Target="_blank" runat="server">Herunterladen</asp:HyperLink>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table><br /><br />
                <!--BODY-->
                <table class="gadgetBody">
                    <asp:Repeater ID="repItems" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td >
                                    <div style=" overflow: hidden; ">
                                        <input type="text" id="item<%#DataBinder.Eval(Container.DataItem, "ID")%>" name="item<%#DataBinder.Eval(Container.DataItem, "ID")%>"
                                            style="width: 20px;" />
                                        <a href="<%#DataBinder.Eval(Container.DataItem, "Link")%>" target="_blank" title="<%#DataBinder.Eval(Container.DataItem, "Description")%>">
                                            <%#DataBinder.Eval(Container.DataItem, "Title")%>&#160;(<small><%#DataBinder.Eval(Container.DataItem, "Link")%></small>)</a>
                                    </div>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
                <!--body-->
                <!--Files-->
                <table class="gadgetBody">
                    <asp:Repeater ID="repFiles" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td >
                                    <div style=" overflow: hidden; ">
                                        <a href="libruconverter.aspx?file=<%#DataBinder.Eval(Container.DataItem, "DisplayName")%>&del=true"
                                            title="<%#DataBinder.Eval(Container.DataItem, "DisplayName")%>">[Löschen]</a>&#160;&#160;&#160;&#160;
                                        <a href="<%#DataBinder.Eval(Container.DataItem, "HttpPath")%>" target="_blank" title="<%#DataBinder.Eval(Container.DataItem, "DisplayName")%>">
                                            <%#DataBinder.Eval(Container.DataItem, "DisplayName")%>
                                        </a>
                                    </div>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
                <!--files-->
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
